package string;

public class LengthDemo {
    public static void main(String[] args) {
        String str = "我爱Java!";
        int len = str.length();
        System.out.println(len);
        String str1 = "我不爱Java!";
        System.out.println(str1.length());

    }
}
